﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="GCEVideoMonitor.Manage.Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/css/common.css" type="text/css" rel="Stylesheet" />
    <link href="/css/css.css" rel="stylesheet" type="text/css" />
    <link href="/css/manage.css" type="text/css" rel="Stylesheet" />

    <script src="/js/jquery.js" type="text/javascript" language="javascript"></script>

    <script>
        $(document).ready(function() {
            var lilist = $(".topMenu ul li");
            lilist.find("a span").click(function() {
                if (!$(this.parentNode.parentNode.parentNode).hasClass("action"));
                {
                    lilist.removeClass("action");
                    $(this.parentNode.parentNode.parentNode).addClass("action");
                }
                return false;

            });
            $(".topMenu a").each(function() {
                this.target = "mainFrame";
            });
        });
    </script>
    <script>

        if (!(window.parent != null && window.parent.document.body != null)) {
            window.location = "<%=AppKey.SiteKey.ManageDirectory %>" + "/frame.aspx";
        }
    </script>
    <style>
        * { margin: 0px auto; padding: 0px; font-size: 12px; list-style: none; font-size: small; font-family: 宋体,arial,verdana,sans-serif,fantasy,tahoma; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="w100_" style="background: #004;">
        <table class="w100_ tal_ table000_">
            <tr>
                <td style="width: 229px; height: 78px; vertical-align:top">
                
                    <img src="/images/logo<%=SiteInfo.IsLocal?"1":"" %>.gif" style="margin-top:-1px" />
                </td>
                <td class="vat_">
                    <div class="topLine">
                    </div>
                    <div class="topMenuContainer">
                        <div class="topMenu">
                            <ul>
                                <zf:ListView runat="server" ID="lvMenu">
                                    <LayoutTemplate>
                                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <li class='<%# Container.DataItemIndex==0?"action":""%> 
                                        <%# (int)Eval("COUNT")>0?"": "dn_" %>'>
                                            <div>
                                                <a href=""><span class="l"></span><span>
                                                    <%# Eval("M.Attribute('title').Value")%></span> <span class="r"></span></a>
                                            </div>
                                            <div class="childMenu">
                                                <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# Eval("L") %>'>
                                                    <ItemTemplate>
                                                        <dd>
                                                            <a href="<%# Eval("Attribute('url').Value") %>">
                                                                <%# Eval("Attribute('title').Value") %></a></dd>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </div>
                                        </li>
                                    </ItemTemplate>
                                </zf:ListView>
                            </ul>
                        </div>
                        <div style="margin-top: 10px; *margin-top: -10px !important; *margin-top: 10px; vertical-align: middle;
                            float: right; padding-right: 30px">
                            
                            <script>
                                function _openService() {
                                    window.open('/service/cservice.aspx?ia=1', 'charService',
                                     'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=690,height=500', true);
                                }
                            </script>
                    
                            <a href="/service/cservice.aspx?ia=1" target="_blank">
                                <img src="/image/index_calc_06.gif" class="vam_" />在线咨询窗口开启</a> <a href="member/changepwd.aspx" target="mainFrame">
                                    <img src="/images/myinfo.gif" class="vam_" /></a><a href="/logout.aspx"><img src="/images/end.gif"
                                        class="vam_" /></a>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
       <script>

           $(function() {
               setInterval(Keep, 30000);
           });
           function Keep() {
               var url = "/info.aspx";
               $.ajax({
               url: "/info.aspx",
                   cache: false,
                   success: function(html) {
                   }
               });
           }
    </script>
</body>
</html>
